home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_2 / fifolib / rauch.manxpragmas < prev    next >
Internet Message Format  |  1991-06-16  |  4KB

  1. From uunet!bmskc!genco!Uucp Mon, 27 May 91 04:44:10 PST
  2. Received: by overload.Berkeley.CA.US (V1.14/Amiga)
  3.     id AA00000; Mon, 27 May 91 04:44:10 PST
  4. Received: from bmskc.UUCP (LOCALHOST.UU.NET) by relay1.UU.NET with SMTP
  5.     (5.61/UUNET-internet-primary) id AA21117; Sun, 26 May 91 07:46:07 -0400
  6. Received: from moe.com by ppg.com (4.1/SMI-4.1)
  7.     id AA20806; Sat, 25 May 91 23:47:24 CDT
  8. Received: from ppg.com (bmskc) by moe.com (4.0/SMI-4.0)
  9.     id AA11505; Sat, 25 May 91 23:44:52 CDT
  10. Received: by genco.bungi.com (/\=-/\ Smail3.1.17.5 #17.8)
  11.     id <m0jhCwL-00007zC@genco.bungi.com>; Sat, 25 May 91 23:42 CDT
  12. Received: by kcufgat (Uucp/1.8(L)[BETA])
  13.     via Uucp; Sat, 25 May 91 23:22:44 CST
  14.     for dillon@Overload.Berkeley.CA.US
  15. Date: Sat 25 May 91 20:12
  16. Message-Id: <Uucp.675235372@kcufgat>
  17. From: uunet!bmskc!kcufgat.fidonet.org!Richard.Rauch
  18. To: dillon@Overload.Berkeley.CA.US (dillon@Overload.Berkeley.CA.US)
  19. Subject:
  20.  
  21. I sent this to henning...  It may be of some interest to you, as it regards
  22. fifo.library's use with Aztec 5.0a.
  23.  
  24. (I used Aztec's #pragmas, so I don't know if the assembly glue will work
  25. correctly with Aztec's assembler/C.  I long since gave up trying to link
  26. Amiga .o and .lib files with Aztec, despite claims in the Aztec linker
  27. docs, so I didn't even try simply linking the provided glue, either.)
  28.  
  29.  
  30.   /~~~dup of a message
  31.  
  32.   To:  henning@aemsrc.UUCP
  33.  
  34.     /~~~henning
  35.  
  36.    ...
  37.    tried both the dillon and the aux: devices, and either I am missing
  38.    something, or they just don't compile correctly under manx 5.0)
  39.    ...
  40.  
  41.     \___henning
  42.  
  43.   I have managed to use the remcli.c with Dillon's FIFO:.  It compiles,
  44.   links, and runs, just the same as when compiled with DICE as far as I
  45.   can see.
  46.  
  47.   I had to make some changes (and I had to generate #pragmas, plus prototype
  48.   by hand from the .doc), but it all works.  (Manx/Aztec 5.0a)
  49.  
  50.  
  51.   fifo_pragmas.h is a new file.  The other two files are provided in diff
  52.   form (generated by the RCS diff, for what it's worth), relative to the
  53.   fifodev2.lzh archive.
  54.  
  55.  
  56.     /~~~fifo_pragmas.h
  57.  
  58.    /*
  59.    **  Made this file with:
  60.    **
  61.    **  aztec:res_lib/mapfd -l -o fifo_pragmas.h fifo_lib.fd
  62.    **
  63.    **       ---rkr.
  64.    **
  65.    */
  66.    #pragma libcall FifoBase OpenFifo 1e 81003
  67.    #pragma libcall FifoBase CloseFifo 24 1002
  68.    #pragma libcall FifoBase ReadFifo 2a 81003
  69.    #pragma libcall FifoBase WriteFifo 30 81003
  70.    #pragma libcall FifoBase RequestFifo 36 81003
  71.    #pragma libcall FifoBase BufSizeFifo 3c 1
  72.  
  73.     \___fifo_pragmas.h
  74.  
  75.  
  76.     /~~~fifo.h_diff
  77.  
  78.    27a28,41
  79.    >
  80.    > /*
  81.    > **  Need some protos so that I can use Manx/Aztec #pragmas...
  82.    > **
  83.    > **    ---rkr.
  84.    > **
  85.    > */
  86.    > FifoHan OpenFifo  (char *name, long bufsize, long flags);
  87.    > void  CloseFifo (FifoHan fifo, long flags);
  88.    > long  ReadFifo  (FifoHan fifo, char **pptr, long skip);
  89.    > long  WriteFifo (FifoHan fifo, void *buf, long max);
  90.    > void  RequestFifo (FifoHan fifo, struct Message *msg, long req);
  91.    > long  BufSizeFifo (FifoHan fifo);
  92.    >
  93.  
  94.     \___fifo.h_diff
  95.  
  96.  
  97.     /~~~remcli.c_diff
  98.  
  99.    29a30,31
  100.    > #include "fifo_pragmas.h"       /*** rkr ***/
  101.    >
  102.    81c83,91
  103.    < int  brk();
  104.    ---
  105.    >
  106.    > /*
  107.    > **  This function not needed in Aztec.
  108.    > **
  109.    > **    ---rkr.
  110.    > **
  111.    > **  int  brk();
  112.    > */
  113.    > extern long Enable_Abort;     /*** Aztec flag for ^c checking ---rkr. ***/
  114.    98c108,109
  115.    <     onbreak(brk);
  116.    ---
  117.    >     /***     onbreak(brk);   /*** not needed in Aztec        ---rkr. ***/
  118.    >     Enable_Abort = 0;     /*** Aztec way of disable ^c    ---rkr. ***/
  119.    292c303
  120.    <       CloseFifo(FifoR);
  121.    ---
  122.    >       CloseFifo(FifoR, 0);    /*** rkr ***/
  123.    294c305
  124.    <       CloseFifo(FifoW);
  125.    ---
  126.    >       CloseFifo(FifoW, 0);    /*** rkr ***/
  127.    315a327
  128.    > long len;               /*** rkr ***/
  129.    322,326c334,344
  130.    < int
  131.    < brk()
  132.    < {
  133.    <     return(0);
  134.    < }
  135.    ---
  136.    > /*
  137.    > **  This function not needed in Aztec.
  138.    > **
  139.    > **    ---rkr.
  140.    > **
  141.    > **  int
  142.    > **  brk()
  143.    > **  {
  144.    > **    return(0);
  145.    > **  }
  146.    > */
  147.  
  148.     \___remcli.c_diff
  149.  
  150.  
  151.   Richard Rauch
  152.  
  153.       11415 Grant Dr.
  154.       Overland Park, Ks. 66210
  155.  
  156.       1:280/304.3
  157.       1:280/304.4
  158.  
  159.       Richard.Rauch@amigacen.kcufgat.fidonet.org
  160.  
  161.   \___dup of a message
  162.  
  163.  
  164. Richard Rauch
  165.  
  166.     11415 Grant Dr.
  167.     Overland Park, Ks. 66210
  168.  
  169.     1:280/304.3
  170.     1:280/304.4
  171.  
  172.     Richard.Rauch@amigacen.kcufgat.fidonet.org
  173.  
  174.